<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@attribute name="groups" required="true" type="java.util.List" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:setLocale value="${language}"/>
<fmt:bundle basename="messages" prefix="grouplist.">
    <div class="table-responsive">
        <table class="table table-striped">
            <thead>
            <tr>
                <th><fmt:message key="course"/></th>
                <th><fmt:message key="clients"/></th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${groups}" var="group">
                <tr>
                    <td>${group.course.courseName}</td>
                    <td>
                        <ol>
                            <c:forEach items="${group.userList}" var="user">
                            <li><p>  ${user.name} ${user.surname}
                                </c:forEach>
                        </ol>
                    </td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
    </div>
</fmt:bundle>
<%--<td><a href = "maa/do?action=remove_course&id=${entity.uuid}">Delete course</a></td>--%>

